package cm.aoplog.config;

import cm.aoplog.aop.OperateLogAspect;
import cm.aoplog.services.OperateLogFrameworkService;
import cm.aoplog.services.OperateLogFrameworkServiceImpl;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;

/**
 * @author: yxh
 * @Description: aop配置
 * @Date: Created in 2022/9/13 13:49
 * @Modified By:
 */
@Configuration
public class OperateLogAutoConfiguration {
    @Bean
    public OperateLogAspect operateLogAspect() {
        return new OperateLogAspect();
    }

    @Bean
    public OperateLogFrameworkService operateLogFrameworkService() {
        return new OperateLogFrameworkServiceImpl();
    }
//    @Bean
//    public OperateLogFrameworkService operateLogFrameworkService(OperateLogApi operateLogApi) {
//        return new OperateLogFrameworkServiceImpl(operateLogApi);
//    }
}
